NUnit [Test] is not a valid attribute
Posted
by tyndall
on Stack Overflow
See other posts from Stack Overflow
or by tyndall
Published on 2010-03-17T13:17:34Z
Indexed on
2010/03/17
13:21 UTC
Read the original article
Hit count: 162
I've included the necessary assemblies into a Windows Class project in VS2008. When I start to try to write a test I get a red squiggle line and the message [Test] is not a valid attribute. I've used NUnit before... maybe an earlier version. What am I doing wrong? I'm on version 2.5.2.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit;
using NUnit.Core;
using NUnit.Framework;
namespace AccessPoint.Web.Test
{
public class LoginTests
{
[Test]
public void CanLogin()
{
}
}
}
© Stack Overflow or respective owner